//
//  JZh5View.h
//  tf02
//
//  Created by Jim on 16/8/18.
//  Copyright © 2016年 Jim. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <WebKit/WebKit.h>

@class JZh5View;
@protocol JZh5ViewDelegate <NSObject>

@optional
- (void)h5View:(JZh5View *)h5View updateNewWebPageWithURL:(NSString *)URLString;

- (void)h5View:(JZh5View *)h5View didFailProvisionalNavigation:(WKNavigation *)navigation withError:(NSError *)error;

- (void)h5View:(JZh5View *)h5View didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error;

- (void)wetherCollected:(JZh5View *)h5View;

@end

@interface JZh5View : UIView

@property (nonatomic, weak) id <JZh5ViewDelegate> delegate;

@property (nonatomic, strong, readonly) WKWebView *webView;

@property (nonatomic, copy) NSString *URLString;

@end
